<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.cetc39.util.DateJsonValueProcessor"%>
<%@ page import="net.sf.json.JsonConfig"%>
<%@ page import="net.sf.json.JSONObject"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>39 | 一级计划更动</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript">
	
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 

</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/lines.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<link href="css/jquery-ui.css">
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="js/d3.v3.js"></script>
<script src="js/rickshaw.js"></script>
<style type="text/css">
.detail_test ul {
	list-style: none;
	margin-left: 0%
}

.detail_test li {
	float: left;
	margin-right: 9%
}

details summary::-webkit-details-marker {
	display: none;
}
</style>
</head>
<body>
	<div id="wrapper">
		<!-- Navigation -->
		<!-- left.jsp -->
		<jsp:include page="left.jsp"></jsp:include>
		<div id="page-wrapper">
			<div class="xs">
				<div class="well1 white">
					<h1 align="center">一级计划列表</h1>

					<div align="left">
						<form action="findReleasedPlanByCondition" method="post">
							<table class="table">
								<tr>
									<td>所领导： <select name="leader_39">
											<option value="">请选择所领导</option>
											<c:forEach items="${leaderList }" var="l">
												<option value="${l.id }">${l.user_name }</option>
											</c:forEach>
									</select></td>
									<td>部门： <select name="dept">
											<option value="">请选择牵头单位</option>
											<c:forEach items="${deptList }" var="d">
												<option value="${d.id }">${d.dept_name }</option>
											</c:forEach>
									</select></td>
									<td>所属领域： <select name="field">
											<option value="">请选择项目领域</option>
											<c:forEach items="${fieldList }" var="f">
												<option value="${f.id }">${f.projectfield_name }</option>
											</c:forEach>
									</select></td>
									<td>目前状态： <select name="status">
											<option value="">请选择项目当前状态</option>
											<option value="0">在研</option>
											<option value="1">收款</option>
											<option value="2">结束</option>
									</select></td>

									<td>合同甲方： <select name="contract_partya">
											<option value="">请选择合同甲方</option>
											<c:forEach items="${clientList }" var="c">
												<option value="${c.id }">${c.name }</option>
											</c:forEach>
									</select></td>
								</tr>
								<tr>
									<td>输入令号：<input type="text" name="project_code" value="" />
									</td>
									<td>启动日期： <input type="date" name="start_date" /></td>
									<td colspan="4"><input type="submit"
										class="btn btn-primary" value="查询" />
									</td>
								</tr>
							</table>
							<input type="hidden" name="opcode" value="update" />
						</form>
					</div>

					<table class="table">
						<thead>
							<tr>
								<th>项目令号</th>
								<th>项目名称</th>
								<th>计划编号</th>
								<th>计划创建时间</th>
								<th colspan="2"><center>操作</center>
								</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${releasedPlanList }" var="plan">
								<c:choose>
									<c:when test="${sessionScope.user.role.id == 2 }">
										<c:if
											test="${plan.project.cpd_ps.id == sessionScope.user.id }">
											<tr class="">
												<td>${plan.project.project_code }</td>
												<td>${plan.project.project_name }</td>
												<td>${plan.plan_id }</td>
												<td><fmt:formatDate value="${plan.plan_setstart}"
														pattern="yyyy-MM-dd HH:mm:ss" />
												</td>
												<td align="right"><a
													href="firstplanVersionChange?version=dad&id=${plan.id }&opcode=forUpdate">大版本更动</a>
												</td>
												<td align="left"><a
													href="firstplanVersionChange?version=son&id=${plan.id }&opcode=forUpdate">小版本更动</a>
												</td>
											</tr>
										</c:if>
									</c:when>
									<c:otherwise>
										<tr class="">
											<td>${plan.project.project_code }</td>
											<td>${plan.project.project_name }</td>
											<td>${plan.plan_id }</td>
											<td><fmt:formatDate value="${plan.plan_setstart}"
													pattern="yyyy-MM-dd HH:mm:ss" />
											</td>
											<td align="right"><a
												href="firstplanVersionChange?version=dad&id=${plan.id }&opcode=forUpdate">大版本更动</a>
											</td>
											<td align="left"><a
												href="firstplanVersionChange?version=son&id=${plan.id }&opcode=forUpdate">小版本更动</a>
											</td>
										</tr>
									</c:otherwise>
								</c:choose>


							</c:forEach>
						</tbody>
					</table>
				</div>
				<br>
				<div id="detail_div" class="detail_test" align="center">
					<br>
				</div>
			</div>


		</div>
		<!-- copyright -->
		<div id="footer">
			<jsp:include page="copyright.jsp"></jsp:include>
		</div>
	</div>
	<!-- /#page-wrapper -->
	<!-- /#wrapper -->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>
